<template>
    <div>
		<Table border :columns="columns" :data="data" size="small" class="default"></Table>
    	
    </div>   

</template>
<script>
	export default{
		props:{
           data:Array
		},
		data(){
			return{
                columns: [{
			            title: '月份',
			            key: 'month'
			        },
			        {
			            title: '产品信号',
			            key: 'productName'
			        },
			        {
			            title: '计划数',
			            key: 'productCount'
			        },
			        {
			            title: '完成数',
			            key: 'finishedCount'
			        },
			        {
			            title: '达成率',
			            key: 'address'
			        }]             
			}
		},
		computed:{
			// data(){

			// }
		},
	    methods: {
            rowClassName (row, index) {
                if (index === 1) {
                    return 'demo-table-info-row';
                } else if (index === 3) {
                    return 'demo-table-error-row';
                }
                return '';
            }
        }

       
	}
</script>
<style scoped>

/* .default.ivu-table th{
 	background-color: yellow!important;
 }*/
/*.root th{
	background-color: red!important;
}*/
</style>